﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BaseData : MonoBehaviour {

    //最大生命
    public int maxLife;

    //最大移动速度
    public float maxSpeed;
    //最大旋转速度
    public float maxAngleSpeed;
    //子弹速度
    public float bulletSpeed;

    //开火速率
    public float fireRate;
    //子弹最大能量
    public int maxEnergyBoost;
    //子弹散布（最大值
    public float fireMaxSpread;
    //子弹散布（每发子弹增加值
    public float fireSpreadPlusRate;
    //子弹散布（不开火时每帧减少值
    public float fireSpreadMinusRate;
    //最大能量
    public float bulletMaxEnergy;
    //能量回复（不开火时每帧增加值
    public float energyPlusRate;

    [HideInInspector]
    public string Pref_bullet = "prefab/bullet";
    [HideInInspector]
    public string Pref_explode = "prefab/explode";
    [HideInInspector]
    public string Pref_flash = "prefab/flash";
    [HideInInspector]
    public string Pref_explodePlay = "prefab/explodeDa";
    [HideInInspector]
    public string Pref_floor = "prefab/floorOut";

    public static BaseData Instance;
    private void Awake()
    {
        Instance = this;
        Instantiate(Resources.Load(BaseData.Instance.Pref_floor) as GameObject);
    }
}
